import java.util.Scanner;

public class Old_1243 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt(),m = sc.nextInt();
        int num = 0;
        for (int i = 0; i < n; i++) {
            num+=sc.nextInt()>m+30?0:1;
        }
        System.out.println(num);
    }
}
